package com.example.javabasic.thread.classtwo.singleton.demo3;


//使用者
public class ObserverClient {
    public static void main(String[] args) {
        final Subject subject = new Subject();
        new BinaryObserver(subject);
        new OctalObserver(subject);
        System.out.println("........");

        subject.setState(1);
        subject.setState(2);
        subject.setState(3);
        subject.setState(4);

    }


}
